package com.zqwm.fly.mongo;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Repository;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

@SuppressWarnings("all")
@Repository
public class ActionMongodb extends Mongodb<String>
{
    private static final Logger logger = LoggerFactory.getLogger(ActionMongodb.class);


    //修改活动
    public boolean updateAction()
    {

        return true;
    }

    //查询活动
    public List<String> findAction(String platform,String cityCode,String status)
    {
        Map<String,Object> map = new HashMap<String,Object>();

        if(null != platform){map.put("platform",platform);}
        if(null != cityCode){map.put("city_code",cityCode);}
        if(null != status){map.put("status",status);}

        return findByItems(map,"action");
    }
}
